﻿jQuery.fn.center = function() {
    // Always return each...
    return this.each(function() {
        var t = jQuery(this);
        t.css({ position: 'fixed' });
        t.css("left", (($(document).width()) / 2 - (parseInt(t.width()) / 2)) + "px");
        t.css("top", (($(document).height()) / 2 - (parseInt(t.height()) / 2)) + "px");
    });
};



